<template>
  <div>
    <h1>{{msg}}</h1>
    <button @click="reverse">点我翻转世界</button>
  </div>
</template>

<script>
export default {
  data(){
    return {
      msg:'hello,how are you!'
    }
  },
  methods:{
    reverse(){
      this.msg=this.msg.split('').reverse().join('')
    }
  }
}
</script>

<style>

</style>